package com.buaa.utils;

import org.apache.solr.client.solrj.impl.HttpSolrClient;

public class SolrUtil {

	private static String server_url = "http://218.249.73.248:8982/solr/";

	/**
	 * 获取solr服务
	 * 
	 * @return
	 */
	public static HttpSolrClient getHttpSolrClient(String url) {
		HttpSolrClient httpSolrClient = null;
		while (httpSolrClient == null) {
			httpSolrClient = new HttpSolrClient(server_url + url);
		}
		return httpSolrClient;
	}
	
	

}
